package thread;

public class Demo2 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            synchronized (Demo2.class) {

                synchronized (Demo2.class) {

                    System.out.println("hello world");
                }
            }

        });
    }


}
